using System;
using System.Collections;
using System.Collections.Generic;
using Huirui.Cavan.Domain.Seedwork;

namespace Huirui.Cavan.Domain.MainBoundedContext.SystemModule

{
	/// <summary>
	/// IndustryType object for NHibernate mapped table 'IndustryType'.
	/// </summary>
	[Serializable]
	public partial class IndustryType : Persistent<int>
	{
		#region Member Variables

		protected string _chinesname;
		protected string _englishname;
		#endregion
		
		#region Constructors
		public IndustryType() {}
			
		public IndustryType(string pChinesName, string pEnglishName)
		{
			this._chinesname = pChinesName; 
			this._englishname = pEnglishName; 
		}
		
		#endregion
		
		#region Public Properties	
		public virtual string ChinesName
		{
			get { return _chinesname; }
			set 
			{
			  if (value != null && value.Length > 200)
			    throw new ArgumentOutOfRangeException("ChinesName", "ChinesName value, cannot contain more than 200 characters");
			  _chinesname = value; 
			}
			
		}
		
		public virtual string EnglishName
		{
			get { return _englishname; }
			set 
			{
			  if (value != null && value.Length > 200)
			    throw new ArgumentOutOfRangeException("EnglishName", "EnglishName value, cannot contain more than 200 characters");
			  _englishname = value; 
			}
			
		}
 
		#endregion 
		
	}
	
}
